// API相关常量
export const API_STATUS = {
  SUCCESS: 200,
  CREATED: 201,
  BAD_REQUEST: 400,
  UNAUTHORIZED: 401,
  FORBIDDEN: 403,
  NOT_FOUND: 404,
  INTERNAL_ERROR: 500
}

// 用户状态常量
export const USER_STATUS = {
  NORMAL: 0,
  DISABLED: 1
}

// 用户性别常量
export const USER_GENDER = {
  UNKNOWN: 0,
  MALE: 1,
  FEMALE: 2
}

// 帖子状态常量
export const POST_STATUS = {
  NORMAL: 0,
  PENDING: 1,
  DELETED: 2
}

// 点赞类型常量
export const LIKE_TYPE = {
  POST: 1,
  COMMENT: 2
}

// 文件类型常量
export const FILE_CATEGORY = {
  IMAGE: 1,
  VIDEO: 2,
  OTHER: 3
}

// 分页常量
export const PAGINATION = {
  DEFAULT_PAGE_SIZE: 20,
  MAX_PAGE_SIZE: 100
}

// 文件大小限制 (字节)
export const FILE_SIZE_LIMITS = {
  IMAGE: 10 * 1024 * 1024, // 10MB
  VIDEO: 100 * 1024 * 1024, // 100MB
  OTHER: 50 * 1024 * 1024 // 50MB
}

// 支持的文件类型
export const SUPPORTED_FILE_TYPES = {
  IMAGE: ['image/jpeg', 'image/jpg', 'image/png', 'image/gif', 'image/webp'],
  VIDEO: ['video/mp4', 'video/avi', 'video/mov', 'video/wmv', 'video/flv']
}

// 应用配置常量
export const APP_CONFIG = {
  NAME: '小红书',
  VERSION: '1.0.0',
  DESCRIPTION: '发现美好生活'
}

// 路由常量
export const ROUTE_NAMES = {
  HOME: 'Home',
  DISCOVER: 'Discover',
  PUBLISH: 'Publish',
  NOTIFICATION: 'Notification',
  PROFILE: 'Profile',
  LOGIN: 'Login',
  REGISTER: 'Register'
}

// 本地存储键名
export const STORAGE_KEYS = {
  USER_TOKEN: 'user_token',
  USER_INFO: 'user_info',
  REMEMBERED_USERNAME: 'rememberedUsername',
  THEME: 'theme',
  LANGUAGE: 'language'
}

// 主题常量
export const THEMES = {
  LIGHT: 'light',
  DARK: 'dark'
}

// 语言常量
export const LANGUAGES = {
  ZH_CN: 'zh-CN',
  EN_US: 'en-US'
}